﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WebNext.Domain.Entities;

namespace WebNext.UI.Utils
{
	static class DomainExtensions
	{
		public static Entry ConvertToListEntry(this Entry entry)
		{
			for (int i = entry.Content.Count - 1; i >= Constants.EntryElementsOnList; i--)
			{
				entry.Content.RemoveAt(i);
			}
			return entry;
		}
	}
}